import {componentsFnMap} from '../../config'

const settings = {
    "componentNameShow": `空容器`, // 展示在左侧用来点击添加的
    "labelName":`空容器`,
    "componentName": 'ifContainer', // 
    "children":[], // 容器类都要有children
    "show":true, // 容器类可见性控制
}
componentsFnMap[settings.componentName] = {
    getHtmlStr(options = {}) {
        let {
            boxId = '', labelName,containerBodyStr = '', show, tableIndex, tableOptions = {}
        } = options
        if (!containerBodyStr) {
            containerBodyStr = `<header class="ycContainer-header" style = "width:100%;height:50px;border:1px solid #CCC;padding-left:15px;">
                            ${labelName}
                    </header> `
        }
        return `
        <div id="${boxId}"
                class=" blockBox formBox fieldBox tabBox ycContainerBox if-component   YCtable "
                style="display:${show ? 'block':'none'}"
                focusIndex="${tableIndex}">           
            ${containerBodyStr}
        </div>  
        `
    }
}
export default settings